package 实践.class_02;

import java.util.Scanner;

public class Demo_01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int positiveCount = 0, negativeCount = 0, sum = 0;
        boolean hasValidInput = false;

        for (String s : input) {
            int num = Integer.parseInt(s);
            if (num == 0) {
                break; // 遇到 0 终止处理后续元素
            }
            hasValidInput = true;
            if (num > 0) {
                positiveCount++;
            } else {
                negativeCount++;
            }
            sum += num;
        }

        if (!hasValidInput) {
            System.out.println("No input");
        } else {
            double average = (double) sum / (positiveCount + negativeCount);
            System.out.println(positiveCount);
            System.out.println(negativeCount);
            System.out.println(sum);
            System.out.printf("%.2f%n", average);
        }
    }
}